package com.yue.service;

import com.yue.mapper.WordMapper;
import com.yue.pojo.Word;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.Date;


@Service
public class WordServiceImpl implements WordService {
    @Autowired
    private WordMapper wordMapper;


    @Override
    public int saveWord(Word word) {
        int i = wordMapper.saveWord(word);
        return i;
    }

    @Override
    public Word checkWord(String wpassword) {
        Word word = wordMapper.checkWord(wpassword);
        return word;
    }

    @Override
    public int deleteWord(String word) {
        int i = wordMapper.deleteWord(word);
        return i;
    }


}
